package com.heima;

import java.lang.reflect.AnnotatedArrayType;
import java.util.ArrayList;

public class SystemTest {
    public static void main(String[] args) {
        long start = System.currentTimeMillis();//开始时的毫秒值
        ArrayList list  = new ArrayList();
        for (int i = 0; i < 10000000; i++) {
            list.add(i);
        }//运行代码
        long end = System.currentTimeMillis();//结束时的毫秒值
        //计算运行的时间为end - start
        System.out.println((end - start) +"毫秒");

    }
}
